package com.yupi.springbootinit.controller.chat;

import com.dongye.lxs.chat.dto.ClientOutput;
import com.dongye.lxs.chat.dto.ClientResponse;
import com.yupi.springbootinit.model.dto.chat.fastChatRequestDto;
import com.yupi.springbootinit.service.FastChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class fastChatController {

   @Autowired
    private FastChatService fastChatService;

    @PostMapping("/fastChat/normalAsk")
    public ClientResponse<ClientOutput> normalAsk(@RequestBody fastChatRequestDto fastChatRequestDto) {
        return fastChatService.normalAsk(fastChatRequestDto);
    }

    @PostMapping("/api/fastChat/sseAsk")
    public ClientResponse<ClientOutput> sseAsk(@RequestBody fastChatRequestDto fastChatRequestDto) {
        return fastChatService.sseAsk(fastChatRequestDto);
    }
}
